for (let index = 1; index < 200; index++) {
toast("熊运生测试用.开始自动扫一扫"+index);
sleep(2000);
click(856,582)
//click("扫一扫");  //点击扫一扫
toast("点击相册");
id("com.android.bankabc:id/iv_barcode_photo").waitFor();  //等侍控件出现
sleep(2000);
var a=id("com.android.bankabc:id/iv_barcode_photo").findOne().bounds();   //求控件座标
click(a.centerX(),a.centerY());   //点击
toast("点击相机");
id("com.vivo.gallery:id/item_layout_left").waitFor();  //等侍控件出现
sleep(2000);
var b=id("com.vivo.gallery:id/item_layout_left").findOne().bounds();   //求控件座标
click(b.centerX(),b.centerY());   //点击
toast("点击第一张图");
id("vivo:id/main").waitFor();  //等侍控件出现
sleep(2000);
//var c=id("vivo:id/main").findOne().bounds();   //求控件座标
//click(c.centerX(),c.centerY());   //点击
click(80,300);
id("com.android.bankabc:id/option_click_area").waitFor();
sleep(2000);
toast("点关闭");
var c=id("com.android.bankabc:id/option_click_area").findOne().bounds();   //求控件座标
click(c.centerX(),c.centerY());   //点击
toast("结速");
log(index);
sleep(2000);    
};
